You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TFairSemaphoreSection Class > TFairSemaphoreSection Methods > Leave Method > TFairSemaphoreSection.Leave Method ([In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TFairSemaphoreSection.Leave Method ([In] int)

Leave the critical section.

Syntax
C#
Visual Basic
public void Leave([In] int SharedResourceIndex);

The SharedResourceIndex parameter must be the same what was returned by the Enter method when called by the same thread. This is the index of the shared resource to be released. 

Call "Leave" before calling "Enter" on the same critical section by the same thread again.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!